import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'

const serviceName = '/sjsk-detection-service'
/*-----------社戒社康人员管理-----------*/
// 机构列表
const lawList = (params) => getAction(`${serviceName}/lawFirm/list`, params)
const addLawFirm = (params) => postAction(`${serviceName}/lawFirm/addLawFirm`, params)
const lawFirmDetail = (id) => getAction(`${serviceName}/lawFirm/lawFirmDetail/${id}`)
const deleteLawFirm = (params) => postAction(`${serviceName}/lawFirm/deleteLawFirm`, params)
const listToConsult = (params) => getAction(`${serviceName}/lawFirm/listToConsult`, params)

// 律师列表
const lawyerList = (params) => getAction(`${serviceName}/lawyer/list`, params)
const deleteLawyer = (params) => postAction(`${serviceName}/lawyer/deleteLawyer`, params)
const addLawyer = (params) => postAction(`${serviceName}/lawyer/addLawyer`, params)
const lawyerMaxNum = (id) => getAction(`${serviceName}/legalAidConsult/lawyerMaxNum/${id}`)


export {
  lawList,
  addLawFirm,
  lawFirmDetail,
  deleteLawFirm,
  listToConsult,
  
  lawyerList,
  deleteLawyer,
  addLawyer,
  lawyerMaxNum
}
